package ink.xiaobaibai.common;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @description: 部门Vo
 * @author: 小白白
 * @create: 2021-07-18
 **/

@Data
@AllArgsConstructor
public class DepartmentVo {

    /**
     * 部门id
     */
    private Integer id;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 负责人信息
     */
    private List<DepUser> userList;

    @Data
    public static class DepUser {

        public DepUser(String userName, String phone) {
            this.userName = userName;
            this.phone = phone;
        }

        /**
         * 部门经理姓名
         */
        private String userName;

        /**
         * 部门经理电话
         */
        private String phone;
    }

}
